package com.djinfo.work.dao;

import com.djinfo.work.entity.SysNewsEntity;

import java.util.List;

/**
 * Created by gz on 2017/5/10.
 */

public interface NewsDao {

    public void saveNews(SysNewsEntity news);

    public List<SysNewsEntity> page(String hql, Integer pageNum, Integer pageSize);
    public List<SysNewsEntity> list(SysNewsEntity object);
    public Integer getAllRowCount(String hql);
    public void update(SysNewsEntity object);
    public void delete(SysNewsEntity object);
    public SysNewsEntity selectOne(SysNewsEntity object);
    public SysNewsEntity getNewsById(String menuId);
}
